package ar.com.gep.soccer.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import ar.com.cdt.framework.persistence.entity.Base;

@Entity
public class Position extends Base {

	private static final long serialVersionUID = -5043934862905991850L;

	@Column
	private int win;

	@Column
	private int lose;

	@Column
	private int draw;

	@Column
	private int goal;

	@Column
	private int goalOwn;

	@ManyToOne
	@JoinColumn(name = "team_id", nullable = false)
	private Team team;

	public int getWin() {
		return win;
	}

	public void setWin(int win) {
		this.win = win;
	}

	public int getLose() {
		return lose;
	}

	public void setLose(int lose) {
		this.lose = lose;
	}

	public int getDraw() {
		return draw;
	}

	public void setDraw(int draw) {
		this.draw = draw;
	}

	public int getGoal() {
		return goal;
	}

	public void setGoal(int goal) {
		this.goal = goal;
	}

	public int getGoalOwn() {
		return goalOwn;
	}

	public void setGoalOwn(int goalOwn) {
		this.goalOwn = goalOwn;
	}

	public Team getTeam() {
		return team;
	}

	public void setTeam(Team team) {
		this.team = team;
	}

}
